finding an element in infinite sorted array

welcome to shbcf.ru